package com.upu173.music.model;

import com.andbase.library.db.orm.annotation.Column;
import com.andbase.library.db.orm.annotation.Id;
import com.andbase.library.db.orm.annotation.Table;

@Table(name = "play_list")
public class PlayList {

    // ID @Id主键,int类型,数据库建表时此字段会设为自增长
    @Id
    @Column(name = "_id")
    private int _id;

    /**
     * 歌手
     */
    @Column(name = "singer")
    private String singer;

    /**
     * 歌曲名
     */
    @Column(name = "name")
    private String name;

    /**
     * 歌曲的地址
     */
    @Column(name = "path")
    private String path;

    /**
     * 歌曲的目录地址
     */
    @Column(name = "parent_path")
    private String parentPath;

    /**
     * 歌曲的大小
     */
    @Column(name = "size")
    private long size;

    /**
     * 歌曲的时长
     */
    private int duration;

    /**
     * 排序字段
     */
    @Column(name = "update_time")
    private String updateTime;

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getSinger() {
        return singer;
    }

    public void setSinger(String singer) {
        this.singer = singer;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getParentPath() {
        return parentPath;
    }

    public void setParentPath(String parentPath) {
        this.parentPath = parentPath;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
